<?php
namespace App\Http\Controllers\admin;

use Illuminate\Http\Request;

use App\Http\Controllers\Controller;

use App\Http\Requests;

use DB;

class addressAddController extends Controller
{
    // 添加地址
	public function index()
    {
    	return view('admin.addressAdd');
    }

    public function doget(Request $request)
    {
    	$list = DB::table('district')->where('upid',$request->input('upid'))->get();
    	echo json_encode($list);
    }

    public function dopost(Request $request)
    {
    	$list = DB::table('district')->where('upid',$request->input('upid'))->get();
    	echo json_encode($list);
    }

}
